add loong64 build target
authorBo YU <tsu.yubo@gmail.com>
Sun, 10 Dec 2023 09:21:17 +0000 (17:21 +0800)
committerBo YU <tsu.yubo@gmail.com>
Mon, 8 Jan 2024 02:12:59 +0000 (10:12 +0800)
Author:    Bo YU <tsu.yubo@gmail.com>

debian/changelog
debian/control
debian/patches/121_add_support_for_loong64.patch [new file with mode: 0644]
debian/patches/series

index bfb958f181f6570fab6c02270eef7572d61ac31a..05b566dd45bd17c606208d36695bd2f4995f6de6 100644 (file)
@@ -1,3 +1,11 @@
+vtk9 (9.1.0+really9.1.0+dfsg2-8) unreleased; urgency=medium
+
+  * Team upload.
+  * Add support for loongarch64. Thanks to Dandan Zhang
+    <zhangdandan@loongson.cn>. (Closes: #1054471)
+
+ -- Bo YU <tsu.yubo@gmail.com>  Tue, 24 Oct 2023 14:35:29 +0800
+
 vtk9 (9.1.0+really9.1.0+dfsg2-7) unstable; urgency=medium
 
   * Team upload.
index 052ac08895abd2ff7193ffa26bf01e629c88aaeb..a3bbb67f1b2119dee7da66fb6d6db4c3ff9be178 100644 (file)
@@ -159,7 +159,7 @@ Description: VTK libraries
  that use VTK.
 
 Package: libvtk9-java
-Architecture: amd64 arm64 armel armhf i386 mips64el mipsel ppc64el s390x alpha ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32
+Architecture: amd64 arm64 armel armhf i386 loong64 mips64el mipsel ppc64el s390x alpha ia64 m68k powerpc ppc64 riscv64 sh4 sparc64 x32
 Section: java
 Depends: ${java:Depends},
          ${misc:Depends},
diff --git a/debian/patches/121_add_support_for_loong64.patch b/debian/patches/121_add_support_for_loong64.patch
new file mode 100644 (file)
index 0000000..bbee005
--- /dev/null
@@ -0,0 +1,20 @@
+Description: add support for loongarch64 
+Upstream:  https://gitlab.kitware.com/seanm/vtk/-/commit/886b536a0d0bb3694951e09169a52896d585c517
+Author: Dandan Zhang <zhangdandan@loongson.cn>
+
+---
+Last-Update: 2023-10-24
+
+--- a/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h
++++ b/Utilities/KWIML/vtkkwiml/include/kwiml/abi.h
+@@ -407,6 +407,10 @@
+ #elif defined(__hppa) || defined(__hppa__)
+ # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG
++/* LoongArch */
++#elif defined(__loongarch64)
++# define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_LITTLE
++
+ /* Motorola 68k */
+ #elif defined(__m68k__) || defined(M68000)
+ # define KWIML_ABI_ENDIAN_ID KWIML_ABI_ENDIAN_ID_BIG
index 591aab3da1032debc0350c128da3351f4fec1d66..0797cf1a486b5c54b809ab11b6cbe693dbdad02b 100644 (file)
@@ -13,3 +13,4 @@ gcc-13.patch
 99_fix_ftbfs.patch
 110_vtk9_netcdf.patch
 120_fix_shader_crash.patch
+121_add_support_for_loong64.patch